<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
<link rel="stylesheet" href="${path }/static/css/cars.css" />
 <link rel="stylesheet" type="text/css" href="${path }/static/css/clothes.css">
</head>
<body>
 <a href="${path }/ToIndexServlet?userid=${userid }"><div class="hdimg"></div></a>
<input type="hidden" value="${userid }"/>
	<section class="cartMain">
		<div class="cartMain_hd">
			<ul class="order_lists cartTop">
				<li class="list_chk"><input type="checkbox" id="all"
					class="whole_check" /> <label for="all"></label> 全选</li>
				<li class="list_con">商品信息</li>
				<li class="list_info">商品参数</li>
				<li class="list_price">单价</li>
				<li class="list_amount">数量</li>
				<li class="list_sum">金额</li>
				<li class="list_op">操作</li>
			</ul>
		</div>
		<div class="cartBox">
			<div class="order_content">
				<c:forEach items="${c }" var="sc">

					<ul class="order_lists">
						<li class="list_chk"><input type="checkbox" id="checkbox_2"
							class="son_check" /> <label for="checkbox_2"></label></li>
						<li class="list_con">
							<div class="list_img">
								<a href="${path }/ToShowCommodity?userid=${userid }&comid=${sc.comid }"><img
									src="${path }/static/images/${sc.image }.jpg" alt="" /></a>
							</div>
							<div class="list_text">
								<a href="man1-clothes.html">${sc.com_name }</a>
							</div>
						</li>
						<li class="list_info">
							<p>规格：靛青色</p>
							<p>尺寸：180/L</p>
						</li>
						<li class="list_price">
							<p class="price">￥${sc.price }</p>
						</li>
						<li class="list_amount">
							<div class="amount_box">
								<a href="javascript:;" class="reduce reSty">-</a> <input
									type="text" value="1" class="sum" /> <a href="javascript:;"
									class="plus">+</a>
							</div>
						</li>
						<li class="list_sum">
							<p class="sum_price">￥${sc.price }</p>
						</li>
						<li class="list_op">
							<p class="del">
								<a href="javascript:;" class="delBtn">移除商品</a>
							</p>
						</li>
						
						
						<section class="model_bg"></section>
						<section class="my_model">
							<p class="title">
								删除宝贝<span class="closeModel">X</span>
							</p>
							<p>您确认要删除该宝贝吗？</p>
							<div class="opBtn">
								<a href="${path }/DoDeleteShopping_cart?comid=${sc.comid }&userid=${userid }" class="dialog-sure">确定</a>
								<a href="javascript:;" class="dialog-close">关闭</a>
							</div>
						</section>
					</ul>
				</c:forEach>
			</div>
		</div>
		<div class="bar-wrapper">
			<div class="bar-right">
				<div class="piece">
					已选商品 <strong class="piece_num">0</strong>件
				</div>
				<div class="totalMoney">
					共计: <strong class="total_text">0.00</strong>
				</div>
				<div class="calBtn">
					<a href="${path }/ToPayServlet?userid=${userid }">结算</a>
				</div>
			</div>
		</div>
	</section>
</body>
<script src="${path }/static/js/jquery.min.js"></script>
<script src="${path }/static/js/cars.js"></script>
</html>